package com.wicket.okrapp.web.contorller;

import com.wicket.okrapp.biz.service.ReportService;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/report/")
public class ReportController {

  @Autowired
  ReportService reportService;
/**
   * D3-执行单内容汇报任务操作(公共)
   */
    @PostMapping("implementSingleContentGenReportTaskCom")
    public OkrResult<ImplementSingleContentGenReportTaskComRespDto> implementSingleContentGenReportTaskCom(@RequestBody @Validated ImplementSingleContentGenReportTaskComReqDto reqDTO){
    return OkrResult.success(reportService.implementSingleContentGenReportTaskCom(reqDTO));
    }
/**
   * D3执行自动汇报任务入参准备(公共)
   */
    @PostMapping("implementAutoReportingTasksPreparationEnrollmentCom")
    public OkrResult<ImplementAutoReportingTasksPreparationEnrollmentComRespDto> implementAutoReportingTasksPreparationEnrollmentCom(@RequestBody @Validated ImplementAutoReportingTasksPreparationEnrollmentComReqDto reqDTO){
    return OkrResult.success(reportService.implementAutoReportingTasksPreparationEnrollmentCom(reqDTO));
    }
/**
   * D3执行给予宽限时间量(公共)
   */
    @PostMapping("implementGiveGracePeriodTimeCom")
    public OkrResult<ImplementGiveGracePeriodTimeComRespDto> implementGiveGracePeriodTimeCom(@RequestBody @Validated ImplementGiveGracePeriodTimeComReqDto reqDTO){
    return OkrResult.success(reportService.implementGiveGracePeriodTimeCom(reqDTO));
    }
}
